
import java.util.Scanner;

public class Work8 {
    public static void main(String[] args) {
        System.out.println("输入一个整数R");
        Scanner scanner = new Scanner(System.in);
        int R = scanner.nextInt();
        System.out.println(R + "=");
        for (int i = 2; i < R; i++) {
            if (R % i == 0) {
                while (R % i == 0) {
                    int t=R/i;
                    if (t==1){
                        System.out.println(i);
                    }else {
                        System.out.println(i + "*");
                    }
                    R /= i;
                }
            }
        }
        if (R!=1){
            System.out.println(R);
        }
    }
}